import json
import requests
url="http://www.kfc.com.cn/kfccda/storelist/index.aspx"
headers={
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0"
}
params={
'cname':'',
'pid':'',
'keyword':' 重庆',
'pageIndex': '1',
'pageSize':'10'
}
response=requests.post(url=url,params=params,headers=headers)
f=open("./kfc.text","w",encoding="utf-8")
f.write(response.text)
f.close()
print("over!!!")